package com.rabbiter.oes.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rabbiter.oes.entity.Teacher;

import java.util.List;

public interface TeacherService {

    IPage<Teacher> findAll(Page<Teacher> page, String name, String sex, String tel, String cardId);

    public List<Teacher> findAll();

    public Long findCountByAcc(String acc);

    public Teacher findById(Integer teacherId);

    public int deleteById(Integer teacherId);

    public int update(Teacher teacher);

    public int updateByPassword(Teacher teacher);

    public int add(Teacher teacher);

    void resetPsw(Integer id, String newPsw, String oldPsw);

}
